package android.slc.appdb.sys.entity;

import android.slc.box.db.entity.IDbBase;
import android.slc.box.db.entity.IDbEntity;
import android.slc.utils.slc_cache.CacheExcludeField;

/**
 * 字典数据表 sys_dict_data
 *
 * @author slc
 */
public class CsDictData implements IDbEntity<Long>, IDbBase {

    /**
     * 字典编码
     */
    private Long dictCode;

    /**
     * 字典排序
     */
    private Long dictSort;

    /**
     * 字典标签
     */
    private String dictLabel;

    /**
     * 字典键值
     */
    private String dictValue;

    /**
     * 字典类型
     */
    private String dictType;

    /**
     * 排序
     */
    private int sort;

    /**
     * 拓展
     */
    private DbExpand dbExpand;

    public Long getDictCode() {
        return dictCode;
    }

    public void setDictCode(Long dictCode) {
        this.dictCode = dictCode;
    }

    public Long getDictSort() {
        return dictSort;
    }

    public void setDictSort(Long dictSort) {
        this.dictSort = dictSort;
    }

    public String getDictLabel() {
        return dictLabel;
    }

    public void setDictLabel(String dictLabel) {
        this.dictLabel = dictLabel;
    }

    public String getDictValue() {
        return dictValue;
    }

    public void setDictValue(String dictValue) {
        this.dictValue = dictValue;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getSort() {
        return sort;
    }

    public void setDbExpand(DbExpand dbExpand) {
        this.dbExpand = dbExpand;
    }

    public DbExpand getDbExpand() {
        return dbExpand;
    }

    public DbExpand getDbExpandNotNull() {
        if(getDbExpand()==null){
            setDbExpand(new DbExpand());
        }
        return getDbExpand();
    }

    @Override
    public void setEId(Long eId) {
        setDictCode(eId);
    }

    @Override
    public Long getEId() {
        return getDictCode();
    }

    /**
     * 创建者
     */
    private Long _createBy;

    /**
     * 创建时间
     */
    private Long _createTime;

    /**
     * 更新者
     */
    private Long _updateBy;

    /**
     * 更新时间
     */
    private Long _updateTime;

    /**
     * 状态
     */
    private int _status;
    /**
     * 备注
     */
    private String _remark;

    /**
     * 状态名称
     */
    @CacheExcludeField()
    private String statusName;

    @Override
    public Long get_createBy() {
        return _createBy;
    }

    @Override
    public void set_createBy(Long createBy) {
        this._createBy = createBy;
    }

    @Override
    public Long get_createTime() {
        return _createTime;
    }

    public void set_createTime(Long createTime) {
        this._createTime = createTime;
    }

    @Override
    public Long get_updateBy() {
        return _updateBy;
    }

    @Override
    public void set_updateBy(Long updateBy) {
        this._updateBy = updateBy;
    }

    @Override
    public Long get_updateTime() {
        return _updateTime;
    }

    @Override
    public void set_updateTime(Long updateTime) {
        this._updateTime = updateTime;
    }

    @Override
    public int get_status() {
        return _status;
    }

    @Override
    public void set_status(int status) {
        this._status = status;
    }

    @Override
    public String get_remark() {
        return _remark;
    }

    @Override
    public void set_remark(String remark) {
        this._remark = remark;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

}
